<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/8/11
 * Time: 16:14
 */
$game = new \main\game();
$兑换技能 = $game->create_url("cmd=npc&nid={$arr_data->nid}&canshu=jnlist","兑换技能");
$jnlist='<br/>========兑换列表========<br/>';
$gnhtml = "<br/>{$兑换技能}<br/>";


if (isset($arr_data->canshu)){
    switch ($arr_data->canshu){
        case 'jnlist':
            $retjn = $game->jn_get_all();
            $suoyin = 0;
            foreach ($retjn as $jn){
                $suoyin += 1;
                $jncmd = $game->create_url("cmd=jninfo&jnid={$jn->jnid}",$jn->jnname);
                $jnlist .= "[$suoyin]{$jncmd}<br/>";
            }
            $gnhtml = $jnlist;
            break;
    }

}